home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 November: Tool Chest / Dev.CD Nov 96 TC / Dev.CD Nov 96 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAEGetData.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1.4 KB  |  44 lines  |  [TEXT/CWIE]

  1. // MSAEGetData.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSAEGETDATA__
  8. #define __MSAEGETDATA__
  9.  
  10. #include <AppleEvents.h>
  11. #include <AEObjects.h>
  12. #include <AERegistry.h>
  13.  
  14.  
  15. #include "MSToken.h"
  16.  
  17.  
  18. pascal OSErr    DoGetData(const AppleEvent    *theAppleEvent,
  19.                                 AppleEvent    *reply,
  20.                                 long        handlerRefCon);
  21.  
  22. pascal OSErr    DoGetDataSize(const AppleEvent    *theAppleEvent,
  23.                                     AppleEvent    *reply,
  24.                                     long        handlerRefCon);
  25.  
  26. OSErr            HandleGetData( AEDesc *theObj, DescType theWantType, AEDesc *result );
  27.  
  28. OSErr             GetTextProperty(const AEDesc *theTokenDesc, AEDesc *result);
  29. OSErr            GetWindowProperty(const AEDesc *theTokenDesc, AEDesc *result);
  30. OSErr            GetWindowTokenProperty( WindowPropToken* thePropToken, AEDesc *result );
  31. OSErr            GetDocumentProperty( const AEDesc *theTokenDesc,
  32.                                             DescType theWantType, AEDesc *result );
  33. OSErr            GetDocumentTokenProperty( WindowPropToken* theToken,
  34.                                             DescType theWantType, AEDesc *result );
  35. OSErr            GetApplicationProperty( const AEDesc *theTokenDesc,
  36.                                             DescType theWantType, AEDesc *result );
  37. OSErr            GetMenuProperty(const AEDesc *theTokenDesc,
  38.                                             DescType theWantType, AEDesc *result);
  39. OSErr            GetMenuItemProperty(const AEDesc *theTokenDesc,
  40.                                             DescType theWantType, AEDesc *result);
  41.  
  42. OSErr            GetTextTextProperty(TextToken* theToken, AEDesc *result);
  43. #endif
  44.